package JDK8;

import java.util.function.Consumer;

/*

 */
public class ConsumerDemo {
    public static void main(String[] args) {
        method("hu",(name)->{
            System.out.println(name.charAt(0));
        });
    }

    public static void method(String name,Consumer<String> con){
        con.accept(name);
    }
}
